package com.manage.function.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.manage.common.annotation.Excel;
import com.manage.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 社保记录对象 function_social_security
 *
 * @author jinghj
 * @date 2025-03-13
 */
@ApiModel(value = "FunctionSocialSecurity", description = "社保记录对象 function_social_security 的详细信息")
public class FunctionSocialSecurity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 社保记录ID
     *
     */
    @ApiModelProperty(value = "社保记录ID")
    private Long id;

    /**
     * 用户ID
     *
     */
    @ApiModelProperty(value = "用户ID")
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 缴纳日期
     *
     */
    @ApiModelProperty(value = "缴纳日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "缴纳日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contributionDate;

    /**
     * 缴纳金额
     *
     */
    @ApiModelProperty(value = "缴纳金额")
    @Excel(name = "缴纳金额")
    private BigDecimal contributionAmount;

    /**
     * 缴纳类型
     *
     */
    @ApiModelProperty(value = "缴纳类型")
    @Excel(name = "缴纳类型")
    private String contributionType;

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 设置 id 的值
     * @param id id 的值
     */
    public void setId(Long id)
    {
        this.id = id;
    }

    /**
     * 获取 id 的值
     * @return id 的值
     */
    public Long getId()
    {
        return id;
    }
    /**
     * 设置 userId 的值
     * @param userId userId 的值
     */
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    /**
     * 获取 userId 的值
     * @return userId 的值
     */
    public Long getUserId()
    {
        return userId;
    }
    /**
     * 设置 contributionDate 的值
     * @param contributionDate contributionDate 的值
     */
    public void setContributionDate(Date contributionDate)
    {
        this.contributionDate = contributionDate;
    }

    /**
     * 获取 contributionDate 的值
     * @return contributionDate 的值
     */
    public Date getContributionDate()
    {
        return contributionDate;
    }
    /**
     * 设置 contributionAmount 的值
     * @param contributionAmount contributionAmount 的值
     */
    public void setContributionAmount(BigDecimal contributionAmount)
    {
        this.contributionAmount = contributionAmount;
    }

    /**
     * 获取 contributionAmount 的值
     * @return contributionAmount 的值
     */
    public BigDecimal getContributionAmount()
    {
        return contributionAmount;
    }
    /**
     * 设置 contributionType 的值
     * @param contributionType contributionType 的值
     */
    public void setContributionType(String contributionType)
    {
        this.contributionType = contributionType;
    }

    /**
     * 获取 contributionType 的值
     * @return contributionType 的值
     */
    public String getContributionType()
    {
        return contributionType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("contributionDate", getContributionDate())
                .append("contributionAmount", getContributionAmount())
                .append("contributionType", getContributionType())
                .append("userName", getUserName())
                .toString();
    }


    public void setUsername(String username) {
        this.userName = username;
    }
}
